package com.apkfuns.jsbridge.view.slice;

import com.apkfuns.jsbridge.ResourceTable;
import com.apkfuns.jsbridge.view.CustomFragmentAbility;
import com.apkfuns.jsbridge.view.fragment.CustomFragment;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.ability.fraction.FractionAbility;
import ohos.aafwk.content.Intent;

public class CustomFragmentAbilitySlice extends AbilitySlice  {

    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_custom_fragment);
        ((FractionAbility)getAbility()).getFractionManager()
                .startFractionScheduler()
                .add(ResourceTable.Id_test_fraction,new CustomFragment(), CustomFragmentAbility.TAG)
                .submit();
    }



}
